#ifndef SYS_GETAGENTID_H
#define SYS_GETAGENTID_H

#include "data.h"

aid_t SYS_GetAgentId(struct Agent_Var* agent)
{
    int i;
    for(i = 0; i < tavm_active_agents_count+tavm_passive_agents_count; i++)
    {
        if(agent == &tavm_agents_v[i]) return i;
    }

    return 0;
}

#endif


